package com.znn.sp.rest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/user")
public class RestFullController {
	@RequestMapping("/get")
	public @ResponseBody User name() {
		
		return new User("znn",25);
	}
}
